import request from '@/utils/request'

// 查询第一阶段网格化营销活动方案列表
export function listManagerPoint(query) {
  return request({
    url: '/buss/managerPoint/list',
    method: 'get',
    params: query
  })
}

// 查询第一阶段网格化营销活动方案详细
export function getManagerPoint(userName) {
  return request({
    url: '/buss/managerPoint/' + userName,
    method: 'get'
  })
}

// 新增第一阶段网格化营销活动方案
export function addManagerPoint(data) {
  return request({
    url: '/buss/managerPoint',
    method: 'post',
    data: data
  })
}

// 修改第一阶段网格化营销活动方案
export function updateManagerPoint(data) {
  return request({
    url: '/buss/managerPoint',
    method: 'put',
    data: data
  })
}

// 删除第一阶段网格化营销活动方案
export function delManagerPoint(userName) {
  return request({
    url: '/buss/managerPoint/' + userName,
    method: 'delete'
  })
}

export function updatePoint(query) {
  return request({
    url: '/buss/managerPoint/updatePoint',
    method: 'get',
    params: query
  })
}

export function addPoint(query) {
  return request({
    url: '/buss/managerPoint/addPoint',
    method: 'get',
    params: query
  })
}

export function sxPoint(query) {
  return request({
    url: '/buss/managerPoint/sxPoint',
    method: 'get',
    params: query
  })
}

export function yxPoint(query) {
  return request({
    url: '/buss/managerPoint/yxPoint',
    method: 'get',
    params: query
  })
}
